
import {Component} from 'react';

class ShowInfoComponent extends Component{
     
    constructor(props){
        super(props);
        }
    

    render(){
        return (
            <div>
                <ul>
                   {
                    this.props.datas.map(item=><li key={item.id}>{item.name}---{item.age}</li>)
                   }
                </ul>
            </div>
        )
    }
}

export default ShowInfoComponent